package dao.impl;

import dao.ApproachDao;
import dao.BaseDao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class ApproachDaoImpl extends BaseDao implements ApproachDao {
    Connection conn;
    PreparedStatement pstmt;
    ResultSet rs;
    @Override
    public ResultSet selectApproaches() {
        conn = getConnection();
        String sql = "select * from approach";
        try {
            pstmt = conn.prepareStatement(sql);
            rs = pstmt.executeQuery();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return rs;
    }
}
